﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewData["Title"] = "湖北省检察院档案管理系统 - 个人 -我的诉讼档案";
}

<div class="WritForm-body">
    <form class="layui-form Writ-form ">
        <fieldset class="layui-elem-field">
            <legend>档号信息</legend>
            <div class="layui-field-box Writ-field-box">
                <div class="layui-input-block">
                    <label class="layui-form-label">类型</label>
                    <div class="layui-inline">
                        @if (ViewBag.type.ToString() == "tradition")
                        {
                            <select id="type">
                                <option selected="selected" value="1">传统文书</option>
                            </select>
                        }
                        else
                        {
                            <select id="type">
                                <option selected="selected" value="1">简化文书</option>
                            </select>
                        }

                    </div>
                </div>
                <div class="layui-input-block">
                    <div class="layui-inline">
                        <label class="layui-form-label">年度</label>
                        <input type="text" class="layui-input" id="Year" />
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">期限</label>
                        <div class="layui-inline">
                            <select>
                                <option selected="selected" value="1">永久</option>
                                <option value="2">长期</option>
                                <option value="3">短期</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">问题</label>
                        <div class="layui-inline">
                            <select>
                                <option selected="selected" value="1">业务</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        @if (ViewBag.type.ToString() == "tradition")
                        {
                            <label class="layui-form-label">案卷号</label>
                        }
                        else
                        {
                            <label class="layui-form-label">件号</label>
                        }
                        <input type="text" class="layui-input" />
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field Writ-container">
            <legend>封面信息</legend>
            <div class="layui-field-box">
                <label class="layui-form-label">机构</label>
                <input type="text" id="txtInstitutions" class="layui-input" />
            </div>
            <div class="layui-field-box">
                <label class="layui-form-label">题名</label>
                <div class="layui-inline Writ-textarea">
                    <textarea class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-field-box layui-row">
                <div class="layui-col-md3">
                    <label class="layui-form-label">年度</label>
                    <input type="text" id="Fyear2" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">起始年月</label>
                    <input type="text" id="Date1" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">截止年月</label>
                    <input type="text" id="Date2" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">文件形成时间</label>
                    <input type="text" id="Date3" class="layui-input" />
                </div>
            </div>
            <div class="layui-field-box">
                <label class="layui-form-label">单位</label>
                <input type="text" id="txtInstitutions" class="layui-input" />
            </div>
            <div class="layui-field-box layui-row">
                <div class="layui-col-md3">
                    <label class="layui-form-label">归档日期</label>
                    <input type="text" id="Date4" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">归档号</label>
                    <input type="text" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">保管卷号</label>
                    <input type="text" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">分类件号</label>
                    <input type="text" class="layui-input" />
                </div>
            </div>
            <div class="layui-field-box layui-row">
                <div class="layui-col-md3">
                    <label class="layui-form-label">密级</label>
                    <div class="layui-inline">
                        <select>
                            <option selected="selected" value="1">绝密</option>
                            <option value="2">机密</option>
                            <option value="3">秘密</option>
                        </select>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">控制标识</label>
                    <div class="layui-inline">
                        <select>
                            <option selected="selected" value="1">待定</option>
                            <option value="2">控制</option>
                            <option value="3">开放</option>
                        </select>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">页数</label>
                    <input type="text" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">档案门类代码</label>
                    <input type="text" class="layui-input" />
                </div>
            </div>
            <div class="layui-field-box">
                <label class="layui-form-label">备注</label>
                <div class="layui-inline Writ-textarea">
                    <textarea class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-field-box layui-row">
                <div class="layui-col-md3">
                    <label class="layui-form-label">责任者</label>
                    <input type="text" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">文号</label>
                    <input type="text" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">全宗名称</label>
                    <input type="text" class="layui-input" />
                </div>
                <div class="layui-col-md3">
                    <label class="layui-form-label">全宗号</label>
                    <input type="text" class="layui-input" />
                </div>
            </div>
        </fieldset>
    </form>
</div>
@section scripts{ 
    <script>
        layui.config({
            base: '/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['form', 'index', 'table', 'laydate', 'layer', 'jquery'], function () {
            var form = layui.form, index = layui.index, table = layui.table, laydate = layui.laydate, layer = layui.layer, $ = layui.jquery;

            laydate.render({
                elem: '#Year',
                type: 'year'
            })
            
            laydate.render({
                elem: '#Fyear2',
                type: 'year'
            })
            laydate.render({
                elem: '#Date1',
                format:'yyyyMMdd'
            })
            laydate.render({
                elem: '#Date2',
                format:'yyyyMMdd'
            })
            laydate.render({
                elem: '#Date3',
                format:'yyyyMMdd'
            })
            laydate.render({
                elem: '#Date4',
                format:'yyyyMMdd'
            })


        })

    </script>

}
